|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | TIMER_PERIOD 50000 |
Functions | |
| void | main (void) |
| void | TIMERB0_ISR (void) |
| #define TIMER_PERIOD 50000 |
Timer_B, Toggle P1.0, CCR0 Up Mode ISR, DCO SMCLK
Description: Toggle P1.0 using software and TB_0 ISR. Timer_B is configured for up mode, thus the timer overflows when TBR counts to CCR0. In this example, CCR0 is loaded with 50000. ACLK = n/a, MCLK = SMCLK = TBCLK = default DCO ~1.045MHz
| / | | |
|---|---|
| – | RST |
| | | P1.0|-->LED
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 61 of file timer_b_ex4_upModeOperation.c.
| void main | ( | void | ) |
Definition at line 63 of file timer_b_ex4_upModeOperation.c.
References __no_operation(), param, and TIMER_PERIOD.
| void TIMERB0_ISR | ( | void | ) |
Definition at line 110 of file timer_b_ex4_upModeOperation.c.